package at.jku.ce.brokerplatform;

import java.util.ArrayList;
import java.util.List;

import at.jku.ce.stockexchange.service.Stock;

public class StockExchangeValues {

	private String businessName;
	private String businessUrl;
	private List<Stock> stocks;

	public StockExchangeValues() {
		setStock(new ArrayList<Stock>());
	}

	/**
	 * @return the businessName
	 */
	public String getBusinessName() {
		return businessName;
	}

	/**
	 * @param businessName
	 *            the businessName to set
	 */
	public void setBusinessName(String businessName) {
		this.businessName = businessName;
	}

	/**
	 * @return the businessUrl
	 */
	public String getBusinessUrl() {
		return businessUrl;
	}

	/**
	 * @param businessUrl
	 *            the businessUrl to set
	 */
	public void setBusinessUrl(String businessUrl) {
		this.businessUrl = businessUrl;
	}

	/**
	 * @return the stock
	 */
	public List<Stock> getStocks() {
		return stocks;
	}

	/**
	 * @param stock
	 *            the stock to set
	 */
	public void setStock(List<Stock> stocks) {
		this.stocks = stocks;
	}

	public void addStock(Stock stock) {
		this.stocks.add(stock);

	}

}
